
#include <QtGui/QWidget>
#include <QtGui/QMouseEvent>
#include <QtGui/QMessageBox>
#include "uiview.h"
#include "mainform.h"


CMainForm::CMainForm(QMainWindow *parent)
{
	m_mainView = new CUiView(this);
	//setCentralWidget(graphicsView);
	//setEnabled(true);
}


CMainForm::~CMainForm(void)
{
	if(m_mainView)
		delete(m_mainView);
}

void CMainForm::mousePressEvent ( QMouseEvent * mouseEvent )
{
	mouseEvent->accept();
	QMessageBox msgBox;
	//msgBox.setText("Mouse has been pressed.");
	//msgBox.exec();
}

void CMainForm::resizeEvent(QResizeEvent * paintEvent)
{
	//QMessageBox::about(0,"Test Main na scenie","X:\nY:");
	QMainWindow::resizeEvent(paintEvent);
}
